class C:

    def __init_subclass__(cls, value1, value2):
        print("父爱如山～")
        cls.x = value1
        cls.y = value2
        print("__init_subclass__ 已经赋值～")


print("========================================================")

D = type('E', (C,), dict(x=250), value1=520, value2=666)
# 父爱如山～
# __init_subclass__ 已经赋值～
print(D.x)  # 520
print(D.y)  # 666

